package com.itwxz.system.domain.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.itwxz.common.annotation.Excel;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 维修站订单对象 wxz_order
 *
 * @author gastronome
 * @date 2025-04-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxzOrder implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 机主名称
	 */
	@Excel(name = "机主名称")
	private String name;

	/**
	 * 身份
	 */
	@Excel(name = "身份")
	private Integer identity;

	/**
	 * 学号
	 */
	@Excel(name = "学号")
	private String studentId;

	/**
	 * 宿舍栋数
	 */
	@Excel(name = "宿舍栋数")
	private String building;

	/**
	 * 宿舍号
	 */
	@Excel(name = "宿舍号")
	private String dormitory;

	/**
	 * 手机号
	 */
	@Excel(name = "手机号")
	private String phone;

	/**
	 * 订单类型
	 */
	@Excel(name = "订单类型")
	private Integer type;

	/**
	 * 订单详情
	 */
	@Excel(name = "订单详情")
	private String details;

	/**
	 * 订单状态
	 */
	@Excel(name = "订单状态")
	private Integer status;

	/**
	 * 维修人员id
	 */
	@Excel(name = "维修人员id")
	private Long staffId;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Excel(name = "更新时间")
	@TableField(fill = FieldFill.UPDATE)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.UPDATE)
    @Excel(name = "更新人")
    private String updateBy;

    /**
	 * 完成订单时间
	 */
	@Excel(name = "完成订单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime completionTime;

	/**
	 * 转单人
	 */
	@Excel(name = "转单人id")
	private Long assignorId;

	/**
	 * 是否上传文件
	 */
	@Excel(name = "上传文件")
	private Integer isUploads;


    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
	 * 删除标志（0代表存在 2代表删除）
	 */
    @TableLogic
	private Integer delFlag;


}
